package com.example.eventbus.handles;

import com.example.eventbus.command.MyCommand;
// import com.example.eventbus.listener.MyEventListener;
import com.example.eventbus.events.MyEventHandler;
import com.example.eventbus.listener.MyEventListener2;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author 谢汉冰
 * @Title: MyEventHandler
 * @Package com.example.eventbus.handles
 * @date 2023/10/23 15:58
 * @description:
 */
@Component
@Slf4j
@SuppressWarnings("all")
public class MyTestEventHandler extends MyEventHandler<MyEventListener2, MyCommand, Integer> {
	@Override
	public Integer send(MyCommand command) {
		eventBus.post(command);
		return 1;
	}
}
